package com.dzh.mapper;

import com.dzh.pojo.Qppriority;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface QppriorityMapper {
    Integer addfirstpriority(String username,String tid);

    Integer addpriority(String username,String tid,int priority);

    int querypBigriority(String tid);


    int queryfirstpriority(String tid);

    //通过username查询抢票的信息
    List<Qppriority> queryQiangpiaolist(String username);

     Qppriority queryprioritymin(String tid);

    //退票抢票的替换
    Integer deletePriority(@Param("priority") int priority,@Param("tid") String tid);

    //删票
    Integer deleteTicketByAdmin(String tid);
//改票后抢票的票也变
    Integer updateTidByAdmin(String tid,String tid1);



}
